package com.ttsx.core.storage.properties;


import com.ttsx.core.storage.enums.StorageTypeEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 存储配置项
 *
 * @author wb
 * @since 2025-09-21
 */
@ConfigurationProperties(prefix = "storage")
@Data
@Component
public class StorageProperties {

    /**
     * 存储策略
     */
    private StorageTypeEnum strategy = StorageTypeEnum.LOCAL;

    /**
     * 本地存储配置
     */
    private LocalStorageProperties local;

    /**
     * Minio存储配置
     */
    private MinioStorageProperties minio;

}
